An instance of the Application object can be created using the Visual Basic New keyword or the CreateObject function and the Prog Id CrystalRuntime.Application.[8]. For example:
Dim app as New CRAXDRT.Application
Set app = New CRAXDRT.Application
' Automatically creates a new instance of the object when it is first
' referenced in the code, so it doesn't have to be set.
Dim app as New Application
' If the version number of the application is not specified, CreateObject will ' create an application running against the new version of craxdrt.dll Dim app As Application
Set app = CreateObject("CrystalRuntime.Application")
' Specify the version number to require version 8 of the dll. Dim app As Application
Set app = CreateObject("CrystalRuntime.Application.8")
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |